package com.devilvan.betrice.mg.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.devilvan.betrice.common.BasePo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Evad.Wu
 * @Description 198763-明细信息表 映射
 * @date 2023-01-26
 */
@Setter
@Getter
@ToString
@NoArgsConstructor
@Accessors(chain = true)
@TableName(value = "MG_DETAIL")

@Entity
@Table(name = "MG_DETAIL")
@DynamicInsert
@EntityListeners(AuditingEntityListener.class)
@Schema(description = "198763-明细信息表 映射")
public class MgDetailPo extends BasePo implements Serializable {
    @Serial
    private static final long serialVersionUID = -7783898469531211078L;
    @Schema(description = "业务ID")
    @TableField(value = "PID")
    @Column(name = "PID", columnDefinition = "VARCHAR(32) NOT NULL COMMENT '业务ID'")
    private String pid;
    @Schema(description = "标题")
    @TableField(value = "TITLE")
    @Column(name = "TITLE", columnDefinition = "VARCHAR(128) NOT NULL COMMENT '标题'")
    private String title;
    @Schema(description = "发布时间")
    @TableField(value = "PUB_DATE")
    @Column(name = "PUB_DATE", columnDefinition = "DATETIME COMMENT '发布时间'")
    private Date pubDate;
    @Schema(description = "影片格式")
    @TableField(value = "MV_FORM")
    @Column(name = "MV_FORM", columnDefinition = "VARCHAR(8) COMMENT '影片格式'")
    private String mvForm;
    @Schema(description = "影片大小")
    @TableField(value = "MV_SIZE")
    @Column(name = "MV_SIZE", columnDefinition = "INT(11) COMMENT '影片大小'")
    private Integer mvSize;
    @Schema(description = "影片时长")
    @TableField(value = "MV_DURATION")
    @Column(name = "MV_DURATION", columnDefinition = "INT(11) COMMENT '影片时长'")
    private Integer mvDuration;
    @Schema(description = "分辨率")
    @TableField(value = "MV_RESOLUTION")
    @Column(name = "MV_RESOLUTION", columnDefinition = "VARCHAR(16) COMMENT '分辨率'")
    private String mvResolution;
    @Schema(description = "详情页URL")
    @TableField(value = "DETAIL_URL")
    @Column(name = "DETAIL_URL", columnDefinition = "VARCHAR(128) COMMENT '详情页URL'")
    private String detailUrl;
    @Schema(description = "磁力链接")
    @TableField(value = "MAGNET")
    @Column(name = "MAGNET", columnDefinition = "VARCHAR(256) COMMENT '磁力链接'")
    private String magnet;
}
